import { v4 as uuidv4 } from 'uuid';
// 生成一个随机字符串，并将身份字符串本地存储
export const getUUID =()=>{
    let uuid_token =localStorage.getItem('UUIDTOKEN')
    if(!uuid_token) {
        uuid_token =uuidv4()
        localStorage.setItem('UUIDTOKEN',uuid_token)
    }
    return uuid_token
}